package com.lhkj.ct.meta.modules.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lhkj.ct.meta.modules.auth.common.enums.IdentType;
import com.lhkj.ct.meta.modules.auth.common.enums.UserType;
import com.lhkj.ct.meta.modules.auth.entity.TblUserIdentity;

/**
 * <p>
 * 第三方授权表 服务类
 * </p>
 *
 * @author jobob
 * @since 2023-11-13
 */
public interface UserIdentityService extends IService<TblUserIdentity> {

    /**
     * 解绑第三方授权
     * @param userType  用户类型
     * @param identType 授权类型
     * @param identity  授权标识
     */
    boolean unbind(UserType userType, IdentType identType, String identity);

    /**
     * 获取绑定信息
     * @param userType
     * @param identType
     * @param identity
     * @return
     */
    TblUserIdentity getByIdentity(UserType userType, IdentType identType, String identity);
}
